package com.jkoss.wine.shop.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;


/**
 * 
 * 
 * @Author Jason
 * @Version 1.0, 2018-10-03
 * @See
 * @Since com.jkoss.wine.shop.entity
 * @Description: TODO
 */
public class Distribution extends Model<Distribution> {

    private static final long serialVersionUID = 1L;

    @TableId("distribution_id")
    private String distributionId;
    /**
     * ul= underline  线下 一级会员返点   百分比  值是0-100的数值。
     */
    @TableField("ul_back_percent")
    private Integer ulBackPercent;
    /**
     * ol= online 线上 一级会员返点   百分比  值是0-100的数值。
     */
    @TableField("ol_back_percent")
    private Integer olBackPercent;
    /**
     * ol= online 线上 
二级会员折扣
一级会员在线上发展的会员在线上商城所拥有的折扣
     */
    @TableField("ol_discount")
    private Integer olDiscount;
    /**
     * 操作时间
     */
    @TableField("operation_time")
    private Date operationTime;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;
    @TableField("shop_id")
    private String shopId;


    public String getDistributionId() {
        return distributionId;
    }

    public void setDistributionId(String distributionId) {
        this.distributionId = distributionId;
    }

    public Integer getUlBackPercent() {
        return ulBackPercent;
    }

    public void setUlBackPercent(Integer ulBackPercent) {
        this.ulBackPercent = ulBackPercent;
    }

    public Integer getOlBackPercent() {
        return olBackPercent;
    }

    public void setOlBackPercent(Integer olBackPercent) {
        this.olBackPercent = olBackPercent;
    }

    public Integer getOlDiscount() {
        return olDiscount;
    }

    public void setOlDiscount(Integer olDiscount) {
        this.olDiscount = olDiscount;
    }

    public Date getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Override
    protected Serializable pkVal() {
        return this.distributionId;
    }

    @Override
    public String toString() {
        return "Distribution{" +
        ", distributionId=" + distributionId +
        ", ulBackPercent=" + ulBackPercent +
        ", olBackPercent=" + olBackPercent +
        ", olDiscount=" + olDiscount +
        ", operationTime=" + operationTime +
        ", operator=" + operator +
        ", shopId=" + shopId +
        "}";
    }
}
